<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="panel panel-default">
        <div class="panel-heading"><b>出库信息</b></div>
        <div class="panel-body">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-1">出库价格:</label>
                <div class="col-xs-12 col-sm-2">
                    <input id="c-price" class="form-control" name="price" type="text" value="" placeholder="">
                </div>
            </div>
            <div class="form-group row">
                <div class="col-xs-12">
                    <table class="table fieldlist" data-template="basictpl" data-name="row[code_arr]" id="first-table">
                        <tr>
                            <td>条码</td>
                            <td>品类</td>
                            <td>年份</td>
                            <td>规格</td>
                            <td>生产日期</td>
                            <td>批次</td>
                            <td>瓶码</td>
                            <td>价格</td>
                            <td width="100"></td>
                        </tr>
                        <tr>
                            <td colspan="5"><a href="javascript:;" class="btn btn-sm btn-success btn-append hidden"><i class="fa fa-plus"></i> {:__('Append')}</a></td>
                        </tr>
                    </table>

                    <!--请注意实际开发中textarea应该添加个hidden进行隐藏-->
                    <textarea name="row[code_arr]" class="form-control hidden" cols="30" rows="5">[]</textarea>
                    <script id="basictpl" type="text/html">
                        <tr class="form-inline">
                            <td><input type="text" name="<%=name%>[<%=index%>][oi_code]" class="form-control " style="width:140px" value="<%=row.oi_code%>" placeholder="条码"/></td>
<!--                            <td><input type="text" name="<%=name%>[<%=index%>][cate]" class="form-control" style="width:60px" value="<%=row.cate%>" placeholder="品类"/></td>-->
                            <td><input type="text" name="<%=name%>[<%=index%>][cate_name]" class="form-control  " style="width:150px" value="<%=row.cate_name%>" placeholder="品类"/></td>
                            <td><input type="text" name="<%=name%>[<%=index%>][oi_year]" class="form-control "  style="width:80px" value="<%=row.oi_year%>" placeholder="年份"/></td>
                            <td><input type="text" name="<%=name%>[<%=index%>][oi_specs]" class="form-control  "  style="width:150px" value="<%=row.oi_specs%>" placeholder="规格"/></td>
                            <td><input type="text" name="<%=name%>[<%=index%>][oi_date]" class="form-control "  style="width:120px" value="<%=row.oi_date%>" placeholder="生产日期"/></td>
                            <td><input type="text" name="<%=name%>[<%=index%>][oi_batch]" class="form-control "  style="width:120px" value="<%=row.oi_batch%>" placeholder="批次"/></td>
                            <td><input type="text" name="<%=name%>[<%=index%>][oi_bottle_code]" class="form-control "  style="width:80px" value="<%=row.oi_bottle_code%>" placeholder="瓶码"/></td>
                            <td><input type="text" name="<%=name%>[<%=index%>][price]" class="form-control" style="width:80px" value="<%=row.price%>" placeholder="价格"/></td>
                            <td>
                                <!--下面的两个按钮务必保留-->
                                <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                                <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                            </td>
                        </tr>
                    </script>
                </div>
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading"><b>订单信息</b></div>
        <div class="panel-body">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">客户姓名:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-out_name" class="form-control" name="out_name" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">客户电话:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-out_phone" class="form-control" name="out_phone" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">是否怕查:</label>
                <div class="col-xs-12 col-sm-8">
                    <select  id="c-is_fear_query" class="form-control selectpicker" name="is_fear_query">
                        {foreach name="isFearQueryList" item="vo"}
                        <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">备注:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-note" class="form-control" name="note" type="text">
                </div>
            </div>
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <font>出库数量:<font class="total_num">0</font></font>
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
